package com.city.provider.service;

import org.apache.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * User: Cheng
 * Date: 2020/4/24
 * Time: 14:09
 * Description: No Description
 */
@Service  //dubbo注解，加入后能被dubbo扫描到，项目启动自动放入注册中心
@Component  //使用dubbo后尽量不适用service注解放入ioc中因为dubbo也有一个service注解，容易导错包
public class TicketServiceImpl implements TicketService {

    @Override
    public String getTicket() {
        return "注册中心的city";
    }
}
